<script src="js/date-functions.js" type="text/javascript"></script>
<script src="js/datechooser.js" type="text/javascript"></script>
<form action="admin.php?action=newsarticles" method="post" onSubmit="return confirm('<?= $lang['Confirm'] ?>');">
<table class="contentTable" border="0">
  <tr>
  	<input name="id" type="hidden" value="<?= $row['n_id'] ?>">
    <td width="25%" class="tableLabel"><?= $lang['NewsTitle']?></td>
    <td width="75%"  class="tableButtonLeft"><input name="title" type="text" class="controlinput" id="title" value="<?= $row['n_title'] ?>" maxlength="100"></td>
  </tr>
  <tr>
    <td class="tableLabel"><?= $lang['NewsEnabled']?></td>
    <td class="tableButtonLeft"><select name="enabled" class="controlinput"  id="enabled"><?= $enabledOptions ?></select></td>
  <tr>
   <tr>
    <td class="tableLabel"><?= $lang['NewsCatagory']?></td>
    <td class="tableButtonLeft"><select name="catagory" class="controlinput"  id="catagory"  onchange="javascript:updateContent(this,'owner')"><?= $catagoryOptions ?></select></td>
  </tr>
   <tr>
    <td class="tableLabel"><?= $lang['NewsOwner']?></td>
    <td class="tableButtonLeft"><select name="owner" class="controlinput"  id="owner"><?= $catagoryItems ?></select></td>
  </tr>
   <tr>
    <td class="tableLabel"><?= $lang['NewsBrief']?></td>
    <td class="tableButtonLeft"><textarea name="brief" rows="3" class="controlinput" id="brief"><?= $row['n_brief']?></textarea></td>
  </tr>
   <tr>
    <td class="tableLabel"><?= $lang['NewsFull']?></td>
    <td class="tableButtonLeft"><textarea name="full" rows="12" class="controlinput" id="full"><?= $row['n_full']?></textarea></td>
  </tr>
   <tr>
    <td class="tableLabel"><?= $lang['NewsPost']?></td>
    <td class="tableButtonLeft">
    	<input name="posteddate" type="text" class="controlinput2" id="posteddate" value="<?= $row['n_posteddate']?>" maxlength="20" > 
        <img src="<?= $skin_dir?>images/calendar.gif" onclick="showChooser(this, 'posteddate', 'chooserposteddate', 2005, 2015, Date.patterns.ISO8601LongPattern, true);">
        <div id="chooserposteddate" class="dateChooser select-free" style="display: none; visibility: hidden; width: 160px;">
    </td>
  </tr>
   <tr>
    <td class="tableLabel"><?= $lang['NewsSticky']?></td>
    <td class="tableButtonLeft">
    	<input name="stickyexpiry" type="text" class="controlinput2" id="stickyexpiry" value="<?= $row['n_stickyexpiry']?>" maxlength="20" > 
        <img src="<?= $skin_dir?>images/calendar.gif" onclick="showChooser(this, 'stickyexpiry', 'chooserstickyexpiry', 2005, 2015, Date.patterns.ISO8601LongPattern, true);">
        <div id="chooserstickyexpiry" class="dateChooser select-free" style="display: none; visibility: hidden; width: 160px;">
    </td>
  </tr>
  <tr>
    <td colspan="2" class="tableButton"><input  class="controlinput2" name="<?= $submitValue ?>" type="submit" value="<?= $submitText ?>"></td>
  </tr>
</table>
</form>